﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JAWWS
{
    class PlayerLogic
    {
        private int TOTAL_PLAYER_HEALTH;
        private int TOTAL_PLAYER_INVENTORY;
        private int BASE_STRENGTH;
        private int BASE_ACCURACY;
        private int TOTAL_STRENGTH;
        private int TOTAL_ACCURACY;
        private float[] PLAYER_STARTING_POSITION;
        private float[] ENEMY_STARTING_POSITION;
        private float BASE_SPEED;
        private float[][] HPITEM_POSITIONS;
        public PlayerLogic()
        {
            //Is in charge of any Actor Rules
            this.TOTAL_PLAYER_HEALTH = 100;
            this.TOTAL_PLAYER_INVENTORY = 10;
            this.BASE_ACCURACY = 3;
            this.BASE_STRENGTH = 2;
            this.PLAYER_STARTING_POSITION = new float[] { 0.0f, 0.0f, 0.0f };
            this.ENEMY_STARTING_POSITION = new float[] { -28.0f, -.5f, 30.0f }; 
            this.BASE_SPEED = 1.0f;
            this.TOTAL_STRENGTH = 10;
            this.TOTAL_ACCURACY = 10;
            this.HPITEM_POSITIONS = new float[3][];
            this.HPITEM_POSITIONS[0] = new float[] { 0.0f, 1.5f, 0.0f  };
            this.HPITEM_POSITIONS[1] = new float[] { 0.0f, 0.5f, 3.0f};
        }
        public float[] getHPItemPosition(int index)
        {
            return HPITEM_POSITIONS[index];
        }
        public int getTotalHealth()
        {
            return TOTAL_PLAYER_HEALTH;
        }
        public int getTotalPlayerInventory()
        {
            return TOTAL_PLAYER_INVENTORY;
        }
        public int getTotalStr()
        {
            return TOTAL_STRENGTH;
        }
        public int getTotalAcc()
        {
            return TOTAL_ACCURACY;
        }
        public int getBaseStr()
        {
            return BASE_STRENGTH;
        }
        public int getBaseAcc()
        {
            return BASE_ACCURACY;
        }
        public float getBaseSpeed()
        {
            return BASE_SPEED;
        }
        public float[] getStartingPos()
        {
            return PLAYER_STARTING_POSITION;
        }
        public float[] getEnemyStartingPos()
        {
            return ENEMY_STARTING_POSITION;
        }
    }
}
